package Units;

import java.util.Random;

import Game.GameModel;
import Game.GameObject;

public class Factory {
	
	public static GameObject newChao() {
		Chao chao = new Chao(0, 0, 0, 2000, 2000, 2000, "blank.png");
		chao.rotateX = -90;
		return chao;
	}
	
	public static GameObject newTankPlayer() {
		Tank tank = new Tank( 0, 0, 0, "obj/tank/tank.obj", "obj/tank/textura-tanque.png");
		tank.scaleX = 0.1f;
		tank.scaleY = 0.1f;
		tank.scaleZ = 0.1f;
		tank.rotateY = -90;
	
		tank.key = true;
		return tank;
	}
	
	public static GameObject newEnemyTank() {
		Random rand = new Random();
		
		EnemyTank tank = new EnemyTank( rand.nextInt(200)-100, 0, rand.nextInt(200)-100,
				"obj/tank/tank.obj", "obj/tank/textura-tanqueInimigo.png");
		
		tank.scaleX = 0.1f;
		tank.scaleY = 0.1f;
		tank.scaleZ = 0.1f;
		tank.rotateY = -90;
		tank.collisionR = 5.f;
	
		return tank;
	}
	
	public static CannonBall newBullet(float x, float y, float z, float ang, String parentName) {
		CannonBall bullet = new CannonBall(x, y, z, ang, parentName);

		return bullet;
	}
}